package com.code.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> { //泛型：如果装的payment 返回payment,装的order 返回order
    private Integer code;
    private String message;
    private Integer count;
    private T data;

    public CommonResult(Integer code ,String message,Integer count)
    {
        this(code,message,count,null);
    }


}
